package com.tty.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tty.entity.Url;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @ClassName StatMapper
 * @Description TODO
 * @Author Tommy Yeung
 * @Date 2022/11/21 上午 09:11
 **/
@Repository
public interface StatMapper extends BaseMapper<Url> {
    //原始url最后一次被转换的时间
    Date getUrlByOriginUrlAndMaxCreatedTime(String originUrl);
    //原始url最后一次被访问的时间
    Date getUrlByOriginUrlAndMaxLastVisited(String originUrl);

}
